package message;

import static org.junit.Assert.*;

import org.junit.Test;

public class InsertDataRequestMessageTest
{

	@Test
	public void testSetId()
	{
		InsertDataRequestMessage message1 = new InsertDataRequestMessage();
		InsertDataRequestMessage message2 = new InsertDataRequestMessage();
		
		message1.setId(0);
		message2.setId(0);
		message2.setId(1);
		
		assertEquals(message1, message2);
	}

	@Test
	public void testSetUsername()
	{
		InsertDataRequestMessage message1 = new InsertDataRequestMessage();
		InsertDataRequestMessage message2 = new InsertDataRequestMessage();
		
		message1.setUsername("User");
		message2.setUsername("User");
		message2.setUsername("asdf");
		
		assertEquals(message1, message2);
	}

	@Test
	public void testSetPassword()
	{
		InsertDataRequestMessage message1 = new InsertDataRequestMessage();
		InsertDataRequestMessage message2 = new InsertDataRequestMessage();
		
		message1.setPassword("Pass");
		message2.setPassword("Pass");
		message2.setPassword("asdf");
		
		assertEquals(message1, message2);
	}

	@Test
	public void testSetDateCreated()
	{
		InsertDataRequestMessage message1 = new InsertDataRequestMessage();
		InsertDataRequestMessage message2 = new InsertDataRequestMessage();
		
		message1.setDateCreated(0);
		message2.setDateCreated(0);
		message2.setDateCreated(1);
		
		assertEquals(message1, message2);
	}

}
